Method and apparatus for displaying business object in video image and electronic device

ABSTRACT

Embodiments of the present disclosure provide a method and an apparatus for displaying a business object in a video image and an electronic device. The method for displaying a business object in a video image includes: detecting at least one target object from a video image, and determining a feature point of the at least one target object; determining a display position of a to-be-displayed business object in the video image according to the feature point of the at least one target object; and drawing the business object at the display position by using computer graphics. According to the embodiments of the present disclosure, the method and apparatus are conductive to saving network resources and system resources of a client.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of PCT/CN2017/098027 filed on Aug. 18, 2017, which claims the priorities from Chinese Application No. CN201610694812.X, filed on Aug. 19, 2016, entitled “Method and Apparatus for Displaying Business Object in Video Image, and Terminal Device,” and Chinese Application No. CN201610694625.1 filed on Aug. 19, 2016, entitled “Method and Apparatus for Processing Video Image, and Terminal Device,” the entire contents of which are hereby incorporated by reference.

TECHNICAL FIELD

The present disclosure relates to the field of artificial intelligence technology, and more specifically to a method and apparatus for displaying a business object in a video image and an electronic device.

BACKGROUND

With the development of the Internet technology, more and more people use the internet to view videos, Internet videos provide commercial opportunities to many new businesses. The internet video has become an important business entry point, and is considered an excellent resource for product placement.

In the existing video advertisement, mainly through an embedding mode, an advertisement with a fixed time length is inserted before the video is broadcasted or at a certain time during the video broadcasting, or an advertisement is placed at a fixed position in a broadcasting and surrounding area of the video.

SUMMARY

Embodiments of the present disclosure provide a technical solution of displaying a business object in a video image.

According to one aspect of the embodiments of the present disclosure, a method for displaying a business object in a video image is provided, which includes: detecting at least one target object from a video image, and determining a feature point of the at least one target object; determining a display position of a to-be-displayed business object in the video image according to the feature point of the at least one target object; and drawing the business object at the display position by using computer graphics.

According to another aspect of the embodiments of the present disclosure, an apparatus for displaying a business object in a video image is provided, which includes: a first determining module, configured to detect at least one target object from a video image, and determine a feature point of the at least one target object; a second determining module, configured to determine a display position of a to-be-displayed business object in the video image according to the feature point of the at least one target object; and a drawing module, configured to draw the business object at the display position by using computer graphics.

According to still another aspect of the embodiments of the present disclosure, an electronic device is also provided, which includes a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus, and the memory is used to store an executable instruction, the executable instruction causing the processor to perform an operation corresponding to the method for displaying a business object in a video image according to any embodiment of the present disclosure.

According to still another aspect of the embodiments of the present disclosure, another electronic device is also provided, which includes a processor and the apparatus for displaying a business object in a video image according to any embodiment of the present disclosure, wherein when the processor runs the apparatus for displaying a business object in a video image, a unit in the apparatus for displaying a business object in a video image according to any embodiment of the present disclosure is run.

According to still another aspect of the embodiments of the present disclosure, a computer program product is also provided, which includes a computer readable code, when the computer readable code is run on a device, a processor in the device executes an instruction for implementing each step in the method for displaying a business object in a video image according to any embodiment of the present disclosure.

According to still another aspect of the embodiments of the present disclosure, a computer readable storage medium is also provided, which is used to store a computer readable instruction, wherein when the instruction is executed, an operation of each step in the method for displaying a business object in a video image according to any embodiment of the present disclosure is implemented.

According to the technical solution provided by the embodiments of the present disclosure, the target object is detected from the video image and the feature point of the target object is determined, different target objects possess different feature points, the determined feature point of the target object is served as a basis for determining the display position of the to-be-displayed business object to determine the display position of the to-be-displayed business object, and the business object is drawn at the determined display position by using computer graphics, so as to display the business object. For instance, in a video image with a human face and a simple background, the human face may be served as the target object, the human face as the target object is acquired by detecting this video image and its feature point (for example, which may include, but not limited to, feature points corresponding to some or all of an eyebrow, an eye, a mouth, a nose and a face contour) is determined, and the display position of the to-be-displayed business object is determined with reference to these feature points, for example, the business object is displayed at a forehead part above the eyebrows. In the embodiments of the present disclosure, when the business object is a to-be-displayed advertisement, on the one hand, the business object is drawn at the determined display position by using computer graphics, without transmitting extra advertisement video data irrelevant to a video through a network, which is conductive to saving network resources and system resources of a client; on the other hand, the business object combines closely with the target object in the video image, so that the business object may be displayed in a mode not disturbing an audience, a normal video viewing experience of the audience would not be affected and an antipathy of the audience is difficult to be aroused, and thus, an expected effect may be effectively achieved.

Hereinafter, the technical solution of the present disclosure will be further described in detail through accompanying drawings and the embodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings forming a part of the Specification describe embodiments of the present disclosure, together with principles explaining the present disclosure.

Referring to the accompanying drawings, the present disclosure can be understood more clearly according to the following detailed description.

FIG. 1 is a flowchart of an embodiment according to a method for displaying a business object in a video image of the present disclosure;

FIG. 2 is a flowchart of another embodiment according to the method for displaying a business object in a video image of the present disclosure;

FIG. 3 is a flowchart of still another embodiment according to the method for displaying a business object in a video image of the present disclosure;

FIG. 4 is a flowchart of still another embodiment according to the method for displaying a business object in a video image of the present disclosure;

FIG. 5 is a flowchart of still another embodiment according to the method for displaying a business object in a video image of the present disclosure;

FIG. 6 is a flowchart of still another embodiment according to the method for displaying a business object in a video image of the present disclosure;

FIG. 7 is a structural block diagram of an embodiment according to an apparatus for displaying a business object in a video image of the present disclosure;

FIG. 8 is a structural block diagram of another embodiment according to the apparatus for displaying a business object in a video image of the present disclosure;

FIG. 9 is a schematic structural diagram of an embodiment according to an electronic device of the present disclosure; and

FIG. 10 is a schematic structural diagram of another embodiment according to the electronic device of the present disclosure.

DETAILED DESCRIPTION OF EMBODIMENTS

Various exemplary embodiments of the present application will now be described in detail with reference to the drawings. It should be noted that, unless otherwise specified, relative arrangements of parts and procedures, expressions of figures and numerical values described in these embodiments do not limit the scope of the present application.

Meanwhile, it should be understood that, in order to facilitate description, the sizes of all parts shown in the drawings are not drawn according to an actual proportional relation.

The description hereinafter of at least one exemplary embodiment is actually only illustrative, and severs by no means as any limitation to the present application and an application or usage thereof.

Technologies, methods and devices known by those of ordinary skills in related arts may not be discussed in detail, but in appropriate situations, the technologies, methods and devices should be regarded as part of the specification.

It should be noted that similar reference numbers and letters in the following drawings represent similar terms, so that once a certain term is defined in a drawing, there is no need of further discussing this term in the follow-up drawings.

Those skilled in the art may appreciate that “first”, “second” and other terms in the embodiments of the present application are only used to distinguish different steps, devices or modules etc., representing neither any specific technical meanings, nor an inevitable logic sequence of them.

The embodiments of the present application may be applied to electronic devices, such as a terminal device, a computer system, a server etc., which can be operated together with many other multipurpose or special-purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and/or configurations suitable for use together with the electronic devices, such as the terminal device, the computer system, a server etc., include but not limited to a personal computer system, a server computer system, a thin client, a thick client, a handhold or laptop device, a microprocessor-based system, a set-top box, a programmable consumable electronic product, a network personal computer, a small-scale computer system, a large-scale computer system, a distributed cloud computing technical environment including any system described above, etc.

The electronic devices, such as the terminal device, the computer system, the server etc. may be described under an ordinary context of a computer system executable instruction (such as a program module) executed by the computer system. Usually, the program module may include a routine, a program, a target program, a component, a logic, a data structure etc., which execute specified tasks or realize specified abstract data types. The computer system/server may be implemented in a distributed cloud computing environment in which a task is executed by a remote processing device linked though a communication network. In the distributed cloud computing environment, the program module may be positioned on a local or remote computing system storage medium including a storage device.

Specific implementations of the embodiments of the present disclosure will be further described below in detail in combination with the accompanying drawings (the same symbol in some accompanying drawings indicates the same element) and the embodiments. The following embodiments are used for describing the present disclosure, rather than limiting the scope of the present disclosure.

FIG. 1 is a flowchart of an embodiment according to a method for displaying a business object in a video image of the present disclosure. Referring to FIG. 1, the method for displaying a business object in a video image in this embodiment includes the following steps.

In step S102, at least one target object is detected from a video image, and a feature point of the at least one target object is determined.

In various embodiments of the present disclosure, the video image is an image corresponding to a video data frame in a video, for example, which may be an image in a video that is live-streaming (i.e., a live streaming video image), and may also be an image in a video that is broadcasted after being recorded. Each video image may include a certain target object, such as a person, a gesture, and a background.

In various embodiments of the present disclosure, the target object is an object existing in the video image and easily to be viewed by an audience, which may include, but not limited to, a human body (e.g., a human face and a body part), a movement (e.g., a posture and a gesture), a background and so on. The target object generally possesses a certain number of feature points, such as conventional 68 feature points of the human face including an eye, a nose, a mouth and a face contour, feature points of a hand including a fingertip, a knuckle and a hand contour, and feature points of a background border. The embodiments of the present disclosure will not limit the target object and the feature point of the target object, which may be adapted to any target object and any feature point of the target object.

In an alternative example of this operation, a corresponding feature extraction algorithm or a neural network model (e.g., a convolutional network model) may be used to detect the target object from the video image and determine the feature point of the target object, and a basis may be provided for a subsequent determining of a display position of a to-be-displayed business object by detecting the target object in the video image and determining the feature point of the target object. For instance, after the feature points of the background border are determined, the business object may be displayed at an appropriate position in the background, or after the feature points of the human face are determined, the business object may be displayed at an appropriate position in the human face (such as a forehead and a cheek).

In an alternative example, step S102 may be performed by a processor invoking a corresponding instruction stored in a memory, and may also be performed by a first determining module 702 run by the processor.

In step S104, a display position of a to-be-displayed business object in the video image is determined according to the feature point of the at least one target object.

In various embodiments of the present disclosure, the business object, for example, may include but not limited to: special effect containing semantic information (e.g., information such as information on advertisement, entertainment, weather forecast, traffic forecast and pet), wherein the special effect, for example, may be a three-dimensional (3D) effect, for example, a three-dimensional advertisement effect such as an advertisement that is presented in a 3D effect, or a two-dimensional (2D) sticker, for example, a two-dimensional advertisement sticker effect such as an advertisement that is presented in a form of sticker, or a particle effect. Not limited by the above, other forms of business objects are also applicable to the technical solution of the embodiment of the present disclosure, such as an application (APP) or textual description or presentation of the application, a certain object that interacts with a video viewer (such as an electronic pet).

A mode of determining the display position of the to-be-displayed business object in the video image in accordance with the feature point of the target object will be described below in detail. As an example, the display position may be determined by a set rule, according to the feature point of the target object. As another example, the display position may be determined by using a trained neural network model (e.g., the convolutional network model) according to the feature point of the target object.

After the feature point of the target object is determined, one or a plurality of display positions of the to-be-displayed business object in the video image may be determined based on the feature point of the target object, where the term “a plurality of” refers to a number that is equal to or greater than two.

In an alternative example, step S104 may be performed by the processor invoking a corresponding instruction stored in the memory, and may also be performed by a second determining module 704 run by the processor.

In step S106, the to-be-displayed business object is drawn at the determined display position by using computer graphics.

After the display position is determined, the business object may be drawn at the display position by using computer graphics, so as to display the business object. When the business object is a sticker containing semantic information, the sticker may be used to put and display an advertisement. For instance, a name of one product is displayed via a sticker of a virtual cap type to attract attention of an audience, thereby enhancing interesting of putting and displaying of the advertisement and improving putting and displaying efficiency of the advertisement. When the business object is a sticker, for example, an advertisement sticker, related information of the business object (such as an identifier and a size of the business object) may be first acquired when the business object is drawn by using computer graphics. After the display position is determined, the business object may be adjusted (e.g., the business object may be zoomed and rotated) according to a coordinate of an area in which the display position in located (e.g., a rectangular area of the display position), and then the business object is drawn in a corresponding drawing mode. In some cases, an advertisement may also be displayed with a 3D special effect, for example, a word or a trademark (LOGO) in the advertisement is displayed in the form of a particle special effect.

In an alternative example of various embodiments of the present disclosure, the business object may be drawn using computer graphics, which may be implemented by a proper computer image drawing or rendering mode, for example, including but not limited to, drawing based on an OpenGL graphics drawing engine. OpenGL defines a professional graphics program interface with a cross-programming-language and cross-platform programming interface specification, and the interface is hardware-independent and may be used to easily draw a 2D or 3D graphic image. OpenGL not only may be used to draw a 2D effect such as a 2D sticker, but may also be used to draw a 3D effect and a particle effect and the like. However, the present disclosure is not limited to the drawing mode based on the OpenGL graphics drawing engine, and other mode may also be adopted, for example, a drawing mode based on a graphics drawing engine such as Unity, OpenCL or the like is also adapted to the various embodiments of the present disclosure.

In an alternative example, step S106 may be performed by the processor invoking a corresponding instruction stored in the memory, and may also be performed by a drawing module 706 run by the processor.

According to the method for displaying a business object in a video image provided by this embodiment, the target object is detected from the video image and the feature point of the target object is determined, different target objects possess different feature points, the determined feature point is served as a basis for determining the display position of the to-be-displayed business object to determine the display position of the to-be-displayed business object, and the business object is drawn at the determined display position by using computer graphics, so as to display the business object. When the business object is a to-be-displayed advertisement, on one hand, the business object is drawn at the determined display position by using computer graphics and is combined with video broadcasting, without transmitting extra advertisement video data irrelevant to a video through a network, which is conductive to saving network resources and system resources of a client; on the other hand, the business object combines closely with the target object in the video image, so that the business object may be displayed in a mode not disturbing an audience, a normal video viewing experience of the audience would not be affected and antipathy of the audience is difficult to be aroused, which is conductive to improving the putting efficiency and effect of the business object and achieving the expected display efficiency and effect.

In an alternative example of above various embodiments of the present disclosure, the business object may include a plurality of associated business objects. Accordingly, in the various embodiments, the determining a display position of a to-be-displayed business object in the video image may include determining corresponding display positions of a plurality of to-be-displayed associated business objects in the video image. The drawing the business object at the display position by using computer graphics may include drawing the plurality of associated business objects at the plurality of determined corresponding display positions respectively by using computer graphics.

In an alternative example of various embodiments of the present disclosure, the plurality of associated business objects may include for example, but not limited to, one or more of: a special effect containing semantic information that are used for displaying a same business object theme, multiple display portions of a same special effect containing semantic information, and a special effect containing semantic information that are provided by a same business object provider. As one example, the special effect may be any one of a two-dimensional sticker special effect containing advertisement information, a three-dimensional special effect containing advertisement information and a particle special effect containing advertisement information. In addition, other forms of the business object are also adapted to video image processing solutions provided by the embodiment of the present disclosure, for instance, a cheek sticker special effect, a forehead sticker special effect and a background sticker special effect provided by the Coca-Cola Company, and for another instance, a virtual headwear sticker special effect and a virtual clothing sticker special effect of a game theme and a background sticker special effect associated with a game scene.

In an alternative example of various embodiments of the present disclosure, the plurality of corresponding display positions include any one or more of: a hair area, a forehead area, a cheek area, a chin area and a body area except a head of a person in the video image, a background area in the video image, an area within a set range in the video image that is centered in an area where a hand is located, and a preset area in the video image. Therefore, the plurality of to-be-displayed associated business objects may be displayed at a same display position, and may also be displayed at different display positions.

By taking the two-dimensional sticker special effect as an example, when the plurality of associated business objects are multiple two-dimensional sticker special effects containing advertisement information that are used for displaying a same business object theme, or multiple display portions of a same two-dimensional sticker special effect containing advertisement information, or multiple two-dimensional sticker special effects containing advertisement information that are provided by a same business object provider, the putting and displaying of an advertisement may be performed by using the multiple two-dimensional sticker special effects or the multiple display portions of the same two-dimensional sticker special effect. For instance, in the live streaming video, the name of a given product is displayed at the mouth position of an anchorman via the virtual cap type sticker special effect, and at the same time, the product is displayed at a hand position of the anchorman via the virtual container type sticker special effect, and the product and its name are displayed in the background of the live streaming video via the background type sticker special effect, thereby significantly attracting attention of an audience, enhancing interesting of the putting and displaying of the advertisement, and improving putting and displaying efficiency of the advertisement.

FIG. 2 is a flowchart of another embodiment according to the method for displaying a business object in a video image of the present disclosure. As shown in FIG. 2, the method for displaying a business object in a video image of this embodiment includes the following steps.

In step S202, at least one target object is detected from a video image, and a feature point of the at least one target object is determined.

The video image may be an image corresponding to a video data frame in a video, and each image includes a certain target object, such as a person, a gesture, a background or the like. By taking the video image being a live streaming video image as an example, a live streaming video is mostly composed of an anchorman and background behind the anchorman (such as home of the anchorman or other video recording places). One target object like a human face or a plurality of target objects such as a human face, a background, a movement and the like may be acquired by detecting the live streaming video image.

In various embodiments of the present disclosure, any appropriate mode in related techniques may be adopted to implement the detecting the target object in the video image and the determining the feature point of the target object. As an example, a linear feature extraction mode such as Principal Component Analysis (PCA), linear discriminant analysis (LDA), independent component analysis (ICA) and the like, may be adopted. As another example, a non-linear feature extraction mode, such as kernel principal component analysis (Kernel PCA), manifold learning and the like, may be adopted. A trained neural network model (e.g., the convolutional network model in the embodiment of the present disclosure) may be used to extract the feature point of the target object. The embodiments of the present disclosure will not limit the specific mode.

As an example, in a process of video broadcasting by a live streaming application, the target object is detected from the live-streaming video image and the feature point of the target object is determined. As another example, in a process of broadcasting one recorded video, an electronic device detects the target object from a broadcasting video image and determines the feature point of the target object. As still another example, in a process of recording a video, the electronic device detects the target object from a recording video image and determines the feature point of the target object.

In an alternative example, step S202 may be performed by a processor invoking a corresponding instruction stored in a memory, and may also be performed by a first determining module 702 run by the processor.

In step S204, corresponding display positions of a plurality of to-be-displayed associated business objects in the video image are determined according to the feature point of the at least one target object.

In an alternative example, step S204 may be performed by the processor invoking a corresponding instruction stored in the memory, and may also be performed by a second determining module 704 run by the processor.

In step S206, the plurality of associated business objects are drawn respectively at the determined corresponding display positions by using computer graphics.

After a plurality of display positions are determined, the plurality of associated business objects may be drawn at the corresponding display positions by using computer graphics, so as to display the associated business objects. When the associated business objects are stickers (e.g., advertisement stickers), related information of the associated business objects (such as identifiers and sizes of the associated business objects) may be first acquired when the business object is drawn by using computer graphics. After the display positions are determined, the associated business objects may be adjusted (e.g., the associated business objects may be zoomed and rotated) according to coordinates of areas in which the display positions (e.g., rectangular areas of the display positions) are located, and then the associated business objects are drawn in a corresponding drawing mode (e.g., OpenGL graphics drawing engine).

For instance, it is assumed that the detected target object in the present embodiment is a human face and the background, and three determined display positions are a mouth in the human face, a hand and the background, multiple special effects containing advertisement information of one business object provider (e.g., the Coca-Cola Company) may be drawn at the display position of the mouth, a sticker special effect of a virtual container (e.g., a beverage bottle of the Coca-Cola) may be drawn at the display position of the hand for example, and a sticker special effect with a poster of the Coca-Cola Company as the background for example may be drawn at the display position of the background.

In an alternative example, step S206 may be performed by the processor invoking a corresponding instruction stored in the memory, and may also be performed by a drawing module 706 run by the processor.

With the rising of the Internet Live Streaming, more and more videos are presented in a live streaming mode. These kinds of videos have features of simple scenario, real-time and a relatively small size of the video image due to its watching by an audience is primarily on an electrical device (such as a cellphone and the like). In this case, for the putting of some business objects such as the putting of the advertisement, in an aspect, since a display area of a screen of the electronic device is finite, if the advertisement is placed at a traditional fixed position, a main user experience area may be occupied, and thus, not only antipathy of an user may be easily aroused, but also audiences of a live-streaming anchorman may be reduced; and in another aspect, for a live streaming application with an anchorman, due to immediacy of the live streaming, traditional inserting an advertisement with a fixed time duration may disturb the coherence of communication between a user and the anchorman, thereby affecting watching experience of the user; in still another aspect, for a short video advertisement, since a duration of the live streaming video contents or a duration of the short video contents is relatively short, it also bring difficulties to insert the advertisement with the fixed time duration in the traditional mode. However, in the embodiment of the present application, the advertisement is put via the business object, and the advertisement putting combines effectively with contents of the live streaming video, which is flexible to implement and has a vivid effect, is conductive to improving live stream watching experience of the user, and also conductive to enhancing a putting effect of the advertisement, and is suitable for a scenario such as advertisement putting or displaying the business object with a relatively small display screen. It can be understood that, besides the advertisement, the putting of the business object may also be widely applied to other aspects such as an education industry, a consulting industry, a service industry and the like, and an interacting effect and a user experience may be improved by putting business information such as entertainment and admiration.

According to the method for displaying a business object in a video image provided by the present embodiment, the at least one target object is detected from the video image and the feature point of the at least one target object is determined, different target objects possess different feature points; the determined feature point of the at least one target object is served as a basis for determining the display position of the to-be-displayed business object, so as to determine the display positions of the plurality of to-be-displayed associated business objects; and the associated business objects are respectively drawn at the plurality of determined display positions by using computer graphics, so as to display the business object. When the associated business objects are to-be-displayed advertisements, on one hand, the associated business objects combine closely with the target object in the video image, so that the associated business objects may be displayed from multiple angles without affecting the normal video watching of the audience, thereby attracting the attention of the audience, thereby enhancing influence of the business object; and on the other hand, the associated business objects are drawn at the determined display positions by using computer graphics and are combined with the video broadcasting, so there is no need to transmit extra advertisement video data irrelevant to a video through a network, which is conductive to saving network resources and system resources of a client.

In addition, before the various embodiments as illustrated in FIG. 1 or FIG. 2 of the present disclosure, the method may further include an operation of acquiring the video image. For instance, an image in a video that is currently broadcasting (i.e., the live streaming video image) is acquired from the live streaming application, or a video image is acquired from a video that is recording. The embodiments of the present disclosure will not limit the approach for acquiring the video image.

In various embodiments of the present disclosure, processing on one video image is taken as an example. However, it should be understood by those skilled in the art that video image processing on multiple video images or a video image sequence in a video stream may be performed with reference to the embodiments of the present disclosure. In an alternative example of the various embodiments of the present disclosure, when the display position of the to-be-displayed business object or the display positions of the associated business objects in the video image are determined according to the feature point of the at least one target object, a possible implementation, for example, may include the following approaches.

In approach 1, the display position of the to-be-displayed business object and the display positions of the plurality of to-be-displayed associated business objects in the video image are determined according to the feature point of the at least one target object by using a convolutional network model. The convolutional network model is pre-trained and used to determine a display position of a business object in the video image.

In approach 2, a type of the target object is determined according to the feature point of the at least one target object; a display area of the to-be-displayed business object is determined according to the type of the at least one target object; and the display position of the to-be-displayed business object in the video image is determined according to the display area. If the business object includes the plurality of associated business object, the approach 2 accordingly includes: determining corresponding display areas of the plurality of associated business objects according to the type of the at least one target object; and determining the corresponding display positions of the plurality of associated business objects in the video image according to the corresponding display areas of the plurality of associated business objects.

In approach 3, the display position of the to-be-displayed business object in the video image is determined according to the feature point of the at least one target object and the type of the to-be-displayed business object. If the business object includes the plurality of associated business objects, the approach 3 accordingly includes: determining the display positions of the plurality of associated business objects in the video image according to the feature point of the at least one target object and types of the plurality of to-be-displayed associated business objects.

In approach 4, a target display position corresponding to the feature point of the target object is acquired from a pre-stored corresponding relationship between feature points of target objects and display positions, and the acquired target display position is determined as the display position of the to-be-displayed business object in the video image. If the business object includes the plurality of associated business objects, the approach 4 accordingly includes: acquiring a target display position corresponding to the feature point of the target object from a pre-stored corresponding relationship between the feature points of the target objects and the display positions, and determining a plurality of acquired target display positions as the corresponding display positions of the plurality of associated business objects in the video image.

Hereinafter, the four approaches will be respectively described with examples.

Approach 1

When the display position of the to-be-displayed business object in the video image is determined with approach 1, one convolutional network model is pre-trained, and the trained convolutional network model possesses a function of determining a display position of a business object or display positions of a plurality of associated business objects in a video image; or a convolutional network model that is trained by a third party and possesses a function of determining a display position of a business object or display positions of a plurality of associated business objects in a video image may be directly used.

It should be noted that, in the present embodiment, the description is made with training of the business object as an example, and training of the target object part may be implemented with reference to related techniques, which is briefly described in the embodiment of the present disclosure.

When the convolutional network model is trained, a possible training approach may include the following processes.

(1), a feature vector of a business object sample image to be trained is acquired by using the convolutional network model.

Here, the feature vector contains information of a target user in the business object sample image, as well as position information and/or confidence information of the business object. Here, the information of the target user indicates image information of the target user; the position information of the business object indicates a position of the business object, which may be position information of a center point of the business object or position information of the area where the business object is located. The confidence information of the business object indicates a probability that an effect (such as being followed or clicked or watched) may be achieved when the business object is presented at the current position. The probability may be set according to a statistical analysis result of the historical data, a simulation experiment result or artificial experience. In a practical application, while the target object is trained, according to the actual needs, the convolution network model may be trained regarding the position information of the business object only, or the convolution network model may be trained for the confidence information of the business object only, or the convolution network model may be trained for both the position information of the business object and the confidence information of the business object. The training of the convolution network model for both the above enables the trained convolution network model to determine the position information and confidence information of the business object more effectively and accurately, thus providing a basis for the presentation of the business object.

The convolutional network model is trained through a large number of sample images. The business object in the business object sample image in the embodiment of the present disclosure may be pre-marked with the position information, confidence information or both of the position information and the confidence information. Naturally, such information may also be obtained through other means in practical application. By marking the business object with corresponding information in advance, data to be processed and a number of interactions may be effectively saved, and data processing efficiency may be improved.

The business object sample image having information of the target user as well as the position information and/or the confidence information of the business object is used as a training sample, and feature vector extraction is performed on the business object sample image to acquire a feature vector containing the information of the target user as well as the position information and/or the confidence information of the business object.

Here, the extraction of the feature vector may be implemented with a suitable approach in related technologies, which will not be described herein in the embodiment of the present disclosure.

Alternatively, the target object and the business object may be respectively trained with the same convolutional network model. In this case, the feature vector of the business object sample image may respectively include the information of the target object, or include the position information and/or confidence information of the business object.

(2), convolution processing is performed on the feature vector by using the convolutional network model to acquire a convolution result of the feature vector.

The acquired convolution result of the feature vector contains the information of the target object, and the position information and/or confidence information of the business object.

A number of times of the convolution processing performed on the feature vector may be set according to actual requirements. That is, in the convolutional network model, a number of layers in a convolutional layer may be set according to actual requirements, so that a final convolution result of the feature vector may meet a standard that an error is within a certain range. For instance, the final convolution result of the feature vector may be 1/20˜⅕ of an image length or an image width, and in one example, the final convolution result of the feature vector may be 1/10 of the image length or the image width.

The convolution result is a result of the feature extraction performed on the feature vector, and the convolution result is able to effectively characterize features and classifications of various related objects (e.g., the target object and the business object) in the video image.

In the embodiment of the present disclosure, when the feature vector contains both the position information of the business object and the confidence information of the business object, that is, in the case where the convolution network model is trained for both the position information and the confidence information of the business object, the feature vector convolution result is shared when the convergence conditions are judged separately later without repeated processing and calculation, thus reducing resource consumption caused by the data processing, and improving data processing speed and data processing efficiency.

In an alternative example, operations (1) and (2) may be performed by the processor invoking corresponding instructions stored in the memory, and may also be performed by the convolutional network model run by the processor.

(3), whether corresponding information of the target object and corresponding position information and/or confidence information of the business object in the convolution result of the feature vector meet a convergence condition are determined, respectively.

The convergence condition may be appropriately set by those skilled in the art according to actual requirements. When the above-mentioned information meets the convergence condition, it may be considered that parameters in the convolutional network model are set appropriately. When the above-mentioned information does not meet the convergence condition, it may be considered that a parameter in the convolutional network model is set inappropriately and needs to be adjusted, and the adjustment is an iterative process. That is, operations (1) to (3) in the training approach are iterated until the information in the convolution result of the feature vector meets the convergence condition.

In an alternative approach, the convergence condition may be set according to a preset standard position and/or a preset standard confidence. For example, whether a distance from a position indicated by the position information of the business object in the convolution result of the feature vector to the preset standard position meets a certain threshold is used as the convergence condition for the position information of the business object, and whether a difference between a confidence indicated by the confidence information of the business object in the convolution result of the feature vector and the preset standard confidence meets a certain threshold is used as the convergence condition for the confidence information of the business object.

Alternatively, the preset standard position may be an average position obtained by averaging the positions of the business objects in the business object sample images to be trained, and the preset standard confidence may be an average confidence obtained by averaging the confidences of the business objects in the business object sample images to be trained. The standard position and/or the standard confidence are set according to the positions and/or the confidences of the business objects in the business object sample images to be trained. Since the sample images are samples to be trained and have a large amount of data, the set standard position and standard confidence are more objective and more precise.

For example, when it is determined whether the corresponding position information and/or confidence information of the business object in the convolution result of the feature vector meet the convergence condition, a possible approach includes:

acquiring the corresponding position information of the business object in the convolution result of the feature vector; calculating a first distance between the position indicated by the corresponding position information of the business object and the preset standard position using a first loss function; and determining whether the corresponding position information of the business object meets the convergence condition according to the first distance; and/or

acquiring the corresponding confidence information of the business object in the convolution result of the feature vector; calculating a second distance between the confidence indicated by the corresponding confidence information of the business object and the preset standard confidence using a second loss function; and determining whether the corresponding confidence information of the business object meets the convergence condition according to the second distance.

In an alternative implementation, the first loss function may be a function for calculating a Euclidean distance between the position indicated by the position information of the corresponding business object and the preset standard position; and/or the second loss function may be a function for calculating a Euclidean distance between the confidence indicated by the confidence information of the corresponding business object and the preset standard confidence. The approach of the Euclidean distance is simple to be implemented and may effectively indicate whether the convergence condition is met, but it is not limited hereto. Other approaches such as Mahalanobis distance, Bhattacharyya distance or the like are also applicable.

Whether the information of the target user in the convolution result of the feature vector is converged may be determined by referring to relevant convergence condition using the convolution network model, which will not be described herein. If the information of the target user meets the convergence condition, the target user may be classified, and a category to which the target user belongs is specified, thus providing reference and basis for subsequent determination of the display position of the business object.

(4), training of the convolutional network model is completed if the convergence condition is met; and a parameter of the convolutional network model is adjusted according to the convolution result of the feature vector if the convergence condition is not met, and an iterative training of the convolutional network model is performed according to the adjusted parameter of the convolutional network model until the convolution result of the feature vector that is acquired after the iterative training meets the convergence condition.

In an alternative example, operations (3) and (4) may be performed by the processor invoking corresponding instructions stored in the memory, and may also be performed by a training module 708 run by the processor.

After the convolutional network model is trained by the above training approach, the convolutional network model may perform feature extraction and classification on the display position of the business object that is displayed based on the target object, thereby possessing the function of determining the display position of the business object in the video image. When the display position includes a plurality of display positions, the convolutional network model may also determine a preference order of display effects of the plurality of display positions through the above training for the confidence of the business object, and thus, an optimal display position is determined. In the subsequent application, an effective display position may be determined according to a current image in the video when the business object needs to be displayed.

In addition, before the above training of the convolutional network model, pre-processing may also be performed on the business object sample image, which may include: acquiring a plurality of business object sample images, wherein each of the business object sample image contains annotation information of a business object; determining positions of the business objects according to the annotation information and determining whether distances between the determined positions of the business objects and a preset position is less than or equal to a set threshold value; and determining a business object sample image corresponding to a business object with a distance between a determined position and the preset position being less than or equal to the set threshold value, as the business object sample image to be trained to participate in the above training process. The preset position and the set threshold value may be appropriately set by those skilled in the art by using any appropriate approach, such as a result of statistic analysis, or a related distance calculating formula or artificial experience, which will not be limited by the embodiment of the present disclosure.

In a possible approach, the position of the business object that is determined according to the annotation information may be a central position of the business object. When determining the position of the business object according to the annotation information and determining whether a distance between the determined position of the business object and a preset position is less than or equal to a set threshold value, the central position of the business object may be determined according to the annotation information; and whether a variance between the central position and the preset position is less than or equal to a set threshold value is judged.

A sample image that does not meet the condition may be filtered out via the pre-processing on the business object sample image, so as to ensure accuracy of the training result.

Training of the convolutional network model is implemented according to the above process, and the display position of the business object in the video image may be determined by using the trained convolutional network model. For instance, in a live broadcasting process of a video, when an anchorman clicks a business object to instruct to display the business object, after acquiring a facial feature point of the anchorman in the live-streaming video image, the convolutional network model may indicate the optimal position for displaying the business object, such as a forehead of the anchorman, a mouth of the anchorman and a background of the live streaming video, and control the live streaming application to display the business or the associated business objects (e.g., a plurality of stickers belonging to a same object theme and containing semantic information) at the position; or in a live broadcasting process of a video, when an anchorman clicks a business object to instruct to display the business object, the convolutional network model may directly determine the display position of the business object according to the live-streaming video image.

Approach 2

In approach 2, the type of the at least one target object is first determined according to the feature point of the at least one target object; the display area of the to-be-displayed business object is then determined according to the type of the at least one target object; and then, the display position of the to-be-displayed business object in the video image is determined according to the display area.

The type of the target object may include, but not limited to, a human face type, a background type, a hand type and an action type. The human face type indicates that a human face occupies a main portion in the video image, the background type indicates that a background occupies a relatively large portion in the video image, the hand type indicates that a hand occupies a major portion in the video image, and the action type indicates that a person in the video image does some kind of action.

The type of the target object may be determined by using related detection, classification or learning methods, after the feature point of the at least one target object is acquired. The display area of the to-be-displayed business object may be determined by a set rule, after the type of the at least one target object is determined.

For instance, if the type of the target object is the human face type, it is determined that the display area of the to-be-displayed business object includes one or more of a hair area, a forehead area, a cheek area, a chin area or a body area except a head of the person in the video image; and/or

if the type of the target object is the background type, it is determined that the display area of the to-be-displayed business object includes a background area in the video image; and/or

when the type of the target object is the hand type, it is determined that the display area of the to-be-displayed business object includes an area that is within a set range in the video image and is centered in an area where a hand is located; and/or

When the type of the target object is the action type, it is determined that the display area of the to-be-displayed business object includes a preset area in the video image. The preset area may be appropriately set according to actual requirements, such as an area that is centered at an action generation position and within a set range, or an area that is beyond an action generation position and is within a set range, or a background area or the like, which will not be limited by the embodiment of the present disclosure.

That is, when the business object includes the plurality of associated business objects, the plurality of associated business objects may be displayed in a combination manner in the determined display areas of the to-be-displayed business object such as the hair area, the forehead area, the background area and the hand area and the like, i.e., the plurality of associated business objects are displayed at different display positions. In addition, the plurality of associated business objects may be displayed at a same display position (e.g., the hair area). By taking a scenario of a live streaming video with an anchorman as an example, the scenario generally includes a common scenario of a live streaming or a short video sharing, subjects of the scenario are generally a major person (e.g., the anchorman) and a simple background (e.g., a house of the anchorman), wherein a person generally occupies a larger portion of a screen. For instance, when the subject of the video is a person, a primary area concerned by an audience is a face area and body movement of the subject. In order to enable an audience to concern more contents of the advertisement, and meantime, to enable the subject of the video to be not affected, a plurality of virtual items containing semanteme such as a 2D sticker special effect containing advertisement information (i.e., the business object) may be added into some related areas such as the person area and background area in the screen by the augmented reality effect. Commercial value is achieved by display effect and display information of a combination of the plurality of virtual items. By this approach, a major image and the movement of the video subject are kept, and interesting of the video is also increased through the special effect with augmented reality, which is conductive to reducing possible antipathy of an audience aroused by the putting of the advertisement, and attracting attention of the audience, thereby forming a commercial value.

In an alternative implementation, an action corresponding to the action type includes one or more of blinking, mouth opening, nodding, head shaking, kissing, smiling, hand waving, scissors hand, first clenching, palm-up, thumbs-up, a shooting hand, a V hand, and an Ok hand.

After the display area is determined, the display position of the to-be-displayed business object in the video image may be further determined. As an example, a central point of the display area is served as a central point of the display position of the business object for displaying the business object. As another example, a certain coordinate position in the display area is determined as the central point of the display position. The determining of the central point of the display position will not be limited by the embodiments of the present disclosure.

Approach 3

In another alternative implementation, compared with the approach 2, in approach 3, when the display position of the to-be-displayed business object in the video image is determined, the display position of the to-be-displayed business object in the video image may be determined according to the feature point of the target object, and the display position of the to-be-displayed business object in the video image may also be determined according to the type of the to-be-displayed business object. The type of the business object includes one or more of: a forehead sticker type, a cheek sticker type, a chin sticker type, a virtual hat type, a virtual clothing type, a virtual makeup type, a virtual headwear type, a virtual hair accessory type, a virtual jewelry type, a background type, a virtual pet type, or a virtual container type. But not limited hereto, the type of the business object may also be other appropriate types, such as a virtual cap type, a virtual cup type and a text type and the like.

Accordingly, the feature point of the target object may be served as a reference to select an appropriate display position of the business object according to the type of the business object.

In addition, in a situation where a plurality of display positions of the to-be-displayed business object in the video image are obtained according to the feature point of the target object and the type of the to-be-displayed business object, at least one display position may be selected from the plurality of display positions as a final display position. For instance, for a business object of a text type, it may be displayed in the background area and may also be displayed in the forehead area or the body area of a person.

Approach 4

In the approach 4, a target display position corresponding to the feature point of the at least one target object is acquired from a pre-stored corresponding relationship between the feature point of the target object and the display position; and the acquired target display position is determined as the display position of the to-be-displayed business object in the video image. The corresponding relationship between the feature point of the target object and the display position may be preset and stored in a form, such as a mapping table. The storing manner of the corresponding relationship is not be limited by the embodiment of the present disclosure.

FIG. 3 is a flowchart of still another embodiment according to the method for displaying a business object in a video image of the present disclosure. In the present embodiment, the solution of displaying a business object in a video image according to the embodiment of the present disclosure is described by taking a business object being a sticker containing semantic information, and more particularly, being an advertisement sticker, as an example. As shown in FIG. 3,

The method for displaying a business object in a video image according to the present embodiment includes the following steps.

In step S302, a business object sample image is acquired and preprocessed, and a business object sample image to be trained is determined.

The business object sample image may include some sample images which do not meet a training standard of a convolutional network model. In the present embodiment, this part of the sample images which do not meet the training standard of the convolutional network model may be filtered out by preprocessing the business object sample image.

In the present embodiment, each of the business object sample images contains an annotated target object and an annotated business object, and the business object is annotated with position information and confidence information. In a possible implementation, position information of a central point of the business object is served as the position information of the business object. In the present step, the sample images are filtered according to the position information of the business objects. After a coordinate of a position indicated by the position information is acquired, the coordinate of the position indicated by the position information is compared with a preset position coordinate of this type of business object to calculate a position variance therebetween. If the position variance is less than or equal to a set threshold value, the business object sample image may be served as the sample image to be trained. If the position variance is greater than the set threshold value, the business object sample image is filtered out. The preset position coordinate and the set threshold value may be appropriately set by those skilled in the art according to actual requirements. For instance, since the sample images for training the convolutional network model generally have a same size, the set threshold value may be set to be 1/20-⅕ of an image length or an image width. For instance, the set threshold value may be 1/10 of the image length or the image width.

In addition, the determined positions and confidences of the business objects in the business object sample images to be trained may be averaged to acquire an average position and an average confidence. The average position and the average confidence may be served as a basis for subsequent determination of a convergence condition.

When taking the business object being an advertisement sticker as an example, the business object sample image for training in the present embodiment is annotated with coordinates of an optimal advertisement position and a confidence of the advertisement position. The coordinates of the optimal advertisement position may be annotated at a place such as a human face, a gesture, a front background or the like, thereby realizing a combined training for an advertisement position of the place such as a facial feature point, a gesture, foreground-background and the like, which is conductive to saving calculation resources as compared with a separated training solution based on advertisement position and confidence of one of the face, a gesture and the like. A value of the confidence indicates a probability that the advertisement position is the optimal advertisement position. For instance, if a major portion of the advertisement position is blocked, the confidence is low.

In an alternative example, the operation S302 may be performed by a processor invoking a corresponding instruction stored in a memory, and may also be performed by a preprocessing module 7080 run by the processor.

In step S304, the convolutional network model is trained by using the determined business object sample image to be trained.

In an alternative example, the operation S302 may be performed by the processor invoking a corresponding instruction stored in the memory, and may also be performed by a training module 708 run by the processor.

In the present embodiment, a brief description of an alternative structure of the convolutional network model is as follows.

(1) Input Layer

For instance, a feature vector of a business object sample image to be trained may be inputted, and the feature vector includes information of a target object, and also contains information of a business object including position information and confidence information of the business object.

(2) Convolutional Layer

//In a first stage, convolution processing is performed on the feature vector of the business object sample image to be trained to acquire a convolution result of the feature vector and share the convolution result of the feature vector.

2. <=1 convolutional layer 1_1 (3×3×64)

3. <=2 nonlinear response ReLU layer

4. <=3 convolutional layer 1_2 (3×3×64)

5. <=4 nonlinear response ReLU layer

6. <=5 pooling layer (3×3/2)

7. <=6 convolutional layer 2_1 (3×3×128)

8. <=7 nonlinear response ReLU layer

9. <=8 convolutional layer 2_2 (3×3×128)

10. <=9 nonlinear response ReLU layer

11. <=10 pooling layer (3×3/2)

12. <=11 convolutional layer 3_1 (3×3×256)

13. <=12 nonlinear response ReLU layer

14. <=13 convolutional layer 3_2 (3×3×256)

15. <=14 nonlinear response ReLU layer

16. <=15 convolutional layer 3_3 (3×3×256)

17. <=16 nonlinear response ReLU layer

18. <=17 pooling layer (3×3/2)

19. <=18 convolutional layer 4_1 (3×3×512)

20. <=19 nonlinear response ReLU layer

21. <=20 convolutional layer 4_2 (3×3×512)

22. <=21 nonlinear response ReLU layer

23. <=22 convolutional layer 4_3 (3×3×512)

24. <=23 nonlinear response ReLU layer

25. <=24 pooling layer (3×3/2)

26. <=25 convolutional layer 5_1 (3×3×512)

27. <=26 nonlinear response ReLU layer

28. <=27 convolutional layer 5_2 (3×3×512)

29. <=28 nonlinear response ReLU layer

30. <=29 convolutional layer 5_3 (3×3×512)

31. <=30 nonlinear response ReLU layer

32. <=31 pooling layer (3×3/2)

//In a first training branch of a second stage, a regression analysis is performed on the position of the business object (i.e., the advertisement sticker) in the convolution result of the feature vector in the first stage, to predict coordinates of the optimal position of the advertisement sticker.

33. <=32 convolutional layer 6_1 (1×1×2304)

34. <=33 nonlinear response ReLU layer

35. <=34 convolutional layer 6_2 (1×1×2)

36. <=35 loss layer, for performing a regression for the coordinates of the optimal advertisement position

//In a second training branch of the second stage, a regression analysis is performed for the confidence of the business object (i.e., the advertisement sticker) in the convolution result of the feature vector in the first stage, to predict a confidence of the advertisement sticker.

37. <=31 pooling layer (3×3/2)

38. <=37 convolutional layer cls_6_1 (1×1×4096)

39. <=38 nonlinear response ReLU layer

40. <=39 convolutional layer cls_6_2 (1×1×4096)

41. <=40 nonlinear response ReLU layer

42. <=41 convolutional layer cls_7_1 (1×1×1)

43. <=42 loss layer, for performing the regression for the confidence

(3) Output Layer

In the present embodiment, an output of the output layer may be a predicted value of layer 35 (i.e., convolutional layer 6_2 (1×1×2)) and a predicted value of layer 42 (i.e., convolutional layer cls_7_1 (1×1×1)).

The following description should be noted.

Firstly, the first training branch of the second stage and the second training branch of the second stage share the convolution result of the feature vector in the first stage, which is conductive to saving calculation resources.

Secondly, the training of the first training branch in the second stage and the training of the second training branch in the second stage may be performed in no particular order, may be performed in parallel, or may be performed in any chronological order;

Thirdly, in the present embodiment, the convolution result of the feature vector in the first stage may contain feature extraction and classification result of the target object, contain feature extraction and classification result of the business object, and further contain feature extraction and classification results of the position information and confidence information of the business object;

Fourthly, in the first training branch of the second stage, the prediction for the optimal position of the advertisement sticker may be performed through multiple iterations, a network parameter (e.g., a value of a convolutional kernel, and a weight of a batch normalization for an output of a layer) is adjusted according to a predicted result once one prediction for the optimal position of the advertisement sticker is completed, and the prediction is further performed based on the convolutional network model with an adjusted parameter, multiple iterations are performed until the convergence condition is met. Specifically, in the first training branch, loss layer 36 uses a first loss function to determine whether a position of the advertisement sticker trained in the first stage meets the convergence condition. In a situation where the convergence condition is not met, the convolutional network model is propagated backward to adjust a training parameter of the convolutional network model, thereby implementing a regression calculation for the optimal position of the advertisement sticker. In the present embodiment, the first loss function may use a function min_(x, y) (x−x_(gt))²+(y−y_(gt))² that measures a Euclidean distance, wherein (x, y) are coordinates of a to-be-optimized advertisement sticker, and (x_(gt), y_(gt)) are coordinates of a preset standard position. In an alternative implementation, the preset standard position may be an average position that is acquired in step S302 after the positions of the business objects in the business object sample images to be trained are averaged.

The convergence condition may be, for instance, coordinates of a to-be-optimized advertisement sticker being the same as the coordinates of the preset standard position, or a difference between the coordinates of the to-be-optimized advertisement sticker and the coordinates of the preset standard position being less than a certain threshold value (for example, 1/20˜⅕ of an image length or an image width, and alternatively may be 1/10), or a number of iteration times for optimizing the parameter achieving a predetermined number of times (e.g., 10-20), or the like.

Fifthly, in the second training branch of the second stage, the prediction of the confidence of the advertisement sticker may be performed through multiple iterations, a network parameter (such as a value of a convolutional kernel, and a weight of a batch normalization for an output of a layer) is adjusted according to a predicted result once one prediction for the confidence of the advertisement sticker is completed, and the prediction is further performed based on a convolutional network model with an adjusted parameter, multiple iterations are performed until the convergence condition is met. For example, in the second training branch, loss layer 43 uses a second loss function to determine whether the confidence of the advertisement sticker trained in the first stage meets the convergence condition. In a situation where the convergence condition is not met, the convolutional network model is propagated backward to adjust a training parameter of the convolutional network model, thereby implementing a regression calculation for the confidence of the advertisement sticker. In the present embodiment, the second loss function may use a function min_(p) (p−p_(gt))² that measures a Euclidean distance for example, wherein p is a confidence of the to-be-optimized advertisement sticker, p_(gt) is a preset standard confidence. In an alternative implementation, the preset standard confidence may be an average confidence that is acquired in step S302 after the confidences of the business objects in the business object sample images to be trained are averaged.

The convergence condition may be, for instance, a to-be-optimized confidence being the same as a preset standard confidence, or a difference between the to-be-optimized confidence and the preset standard confidence being less than a certain threshold value (e.g., less than or equal to 25%), or a number of iteration times for optimizing the parameter achieving a predetermined number of times (e.g., 10-20) or the like.

Sixthly, in the above description of the structure of the convolutional network, 2. <=1 indicates that the current layer is layer 2 and the input layer is layer 1; the bracket after the convolutional layer refers to a parameter of the convolutional layer (3×3×64), which indicate that a size of the convolutional kernel is 3×3, and a number of channels is 64, the bracket (3×3/2) after the pooling layer indicate that a size of a pooling kernel is 3×3 and an interval is 2. Other cases may be similarly deduced and will not be repeatedly described herein.

In the above structure of the convolutional network, there exists a nonlinear response unit after each convolutional layer, and the nonlinear response unit adopts a Rectified Linear Unit (Rectified Linear Units, ReLU). Mapping result of the convolutional layer may be attenuated as much as possible by adding the Rectified Linear Unit after the convolutional layer, so as to be closer to visual response of a person, thereby improving processing effect of the image.

As an example, the convolutional kernel of the convolutional layer is set to 3×3, and thus, local information in the video image may be better synthesized.

A stride of the pooling layer (Max pooling) is set, so that a feature of an upper layer acquires a larger field of vision without increasing calculation burden. The stride of the pooling layer further possesses a feature of increasing spatial invariance, that is, a same input is allowed to appear at different image positions with a same output result response.

However, those skilled in the art should understand that, the size of the convolutional kernel, the channel number, and the size of the pooling kernel, the interval and the layer number of the convolutional layers are all described with examples, which may be adaptively adjusted in a practical application by those skilled in the art according to actual requirements, and will not be limited by the embodiment of the present disclosure. In addition, a combination of all the layers and parameters in the convolutional network model in the present embodiment are alternative and may be used in any combination.

Through the convolutional network model in the present embodiment, the first training branch is used to predict the optimal position of the advertisement sticker, and the second training branch is used to predict the confidence of the position, thereby realizing an effective prediction of the position of the advertisement sticker in the video image.

In step S306, a current video image is acquired, the current video image is served as an input, at least one target object is detected from the video image by using a trained convolutional network model, and a feature point of the at least one target object is determined.

In an alternative example, step S306 may be performed by the processor invoking a corresponding instruction stored in the memory, and may also be performed by a first determining module 702 run by the processor.

In step S308, a display position of a to-be-displayed business object in the current video image is determined according to the feature point of the at least one target object by using the trained convolutional network model.

In an alternative example, step S308 may be performed by the processor invoking a corresponding instruction stored in the memory, and may also be performed by a second determining module 704 run by the processor.

In step S310, the to-be-displayed business object is drawn at the display position in the current video image by using computer graphics.

In an alternative example, step S310 may be performed by the processor invoking a corresponding instruction stored in the memory, and may also be performed by a drawing module 706 run by the processor.

With the development of the live streaming and the short video sharing, more and more videos are presented in a live streaming manner or in a manner of a short video. In these videos, a person is generally served as a main character (a single person or a few people), and the person and a simple background are generally served as a main scene, and an audience mostly watches these videos on a mobile terminal such as a cellphone. Through the technical solution provided in the present embodiment, a video image in a video broadcasting process may be detected in real time to provide an advertisement putting position with a better effect without affecting watching experience of a user, and thus having a better putting effect. Certainly, besides the above scenario, other scenarios such as a video recording scenario and the like are also adapted to the technical solution provided in the present embodiment.

In addition, the method for displaying a business object in a video image according to the embodiment may be implemented at any appropriate terminal device which possesses functions of data acquisition, processing and transmission (e.g., the mobile terminal or a personal computer (PC)), the embodiment of the present disclosure does not set limitation on the implementing device.

FIG. 4 is a flowchart of still another embodiment according to the method for displaying a business object in a video image of the present disclosure. In the present embodiment, the business object being a sticker containing semantic information, and particularly, being an advertisement sticker, is still taken as an example to describe the method for displaying a business object in a video image according to embodiment of the present disclosure.

Referring to FIG. 4, the method for displaying a business object in a video image according to the present embodiment includes the following steps.

In step S402, at least one target object is detected from a video image, and a feature point of the at least one target object is determined.

In an alternative example, step S402 may be performed by a processor invoking a corresponding instruction stored in a memory, and may also be performed by a first determining module 702 run by the processor.

In step S404, a type of the at least one target object is determined according to the feature point of the at least one target object.

Each target object includes a certain feature point, such as a feature point of a human face or a hand, and a boundary point of a background. In the present embodiment, after the feature point of the target object is acquired, the type of the target object may be determined by using related detection, classification or learning methods.

In step S406, a display area of a to-be-displayed business object is determined according to the type of the at least one target object.

For example, if the type of the target object is a human face type, it is determined that the display area of the to-be-displayed business object includes one or more of a hair area, a forehead area, a cheek area, a chin area and a body area except a head of a person in the video image; and/or

if the type of the target object is a background type, it is determined that the display area of the to-be-displayed business object includes a background area in the video image; and/or

if the type of the target object is a hand type, it is determined that the display area of the to-be-displayed business object includes an area that is centered in an area where the hand is located and is within a set range in the video image; and/or

if the type of the target object is an action type, it is determined that the display area of the to-be-displayed business object includes a preset area in the video image.

By taking a video scenario with an anchorman as an example, the scenario generally includes a common scenario of live streaming or short video sharing, a subject of the scenario is generally a person and a simple background, wherein the person generally occupies a larger portion of a screen. For instance, when the video subject is a person, an area concerned mainly by an audience is a face area and body movement of the subject. In order to enable the audience to concern more contents of the advertisement without affecting the subject of the video at the same time, a virtual item containing semanteme like the advertisement sticker (i.e., the business object) may be added into a related area of the person in the screen by augmented reality effect. Commercial value is achieved by display effect and display information of the virtual item. By this approach, a major image and the movement of the video subject are kept, and interesting of the video is also increased through a special effect of augmented reality, which is conductive to reducing possible antipathy of the audience aroused by the putting of the advertisement, and attracting the attention of the audience, thereby forming a commercial value.

For instance, in a video streaming scenario, a display area of a business object of a forehead sticker type may be a forehead area of the anchorman, a display area of a business object of a cheek sticker type may be areas of both cheeks of the anchorman, a display area of a business object of another cheek sticker type may be areas of both cheeks of the anchorman and an area above the anchorman's forehead in the background area, a display area of a business object of a chin sticker type may be a chin area of the anchorman, and a display area of a business object of a virtual headwear type may be a hair area of the anchorman and an area in the background. A display area of a business object that is displayed in the background area may be used to display in a situation where the business object is displayed without covering the background, a display area of a business object whose display is triggered by a blinking movement may be an eye area of the anchorman, a display area of a business object whose display is triggered by a kissing movement may be a mouth area of the anchorman, a display area of a business object whose display is triggered by a smiling movement may be multiple areas, a display area of a business object whose display is triggered by a hand waving movement may be a hand area of the anchorman, and a display area of a business object whose display is triggered by a palm-upward movement may be an area above the anchorman's hand.

In step S408, a display position of the to-be-displayed business object in the video image is determined according to the display area.

The determined display area may merely include one area, and may also include a plurality of areas, from which one or more display areas may be determined to draw and display the business object according to the type of the business object.

As an example, when the type of the target object is the human face type, and the type of the business object is the forehead sticker type, it may be determined that the display area of the business object in the video image is a corresponding forehead area, and a central point of the forehead area is served as a center of the display position for drawing and displaying the business object. As another example, when the type of the target object is the human face type, and the type of the business object is a text type, the display area of the business object in the video image may include a body area, a forehead area, a cheek area and a background area and the like, from which one or more areas may be determined to draw and display the business object with a corresponding central point of the area as the center of the display area.

In an alternative example, steps S404 to S408 may be performed by the processor invoking corresponding instructions stored in the memory, and may also be performed by a drawing module 706 run by the processor.

In step S410, the business object is drawn and displayed at the display position by using computer graphics.

In an alternative example, step S410 may be performed by the processor invoking a corresponding instruction stored in the memory, and may also be performed by a second determining module 704 run by the processor.

Alternatively, the business object in the above example may be a sticker in a text form or a picture form, or in a form of a combination of them.

According to the method for displaying a business object in a video image provided in the embodiment, in a video scenario with an anchorman, an appropriate position for putting and displaying the advertisement can be effectively determined, and can be effectively merged with the video broadcasting without extra network resources and system resources of a client, and thus, the putting effect and efficiency of the advertisement is improved without affecting the video watching experience of the user.

In the embodiment as illustrated in FIG. 4, if the business object includes a plurality of associated business objects, in step S406, corresponding display areas of the plurality of to-be-displayed associated business objects are determined according to the type of the at least one target object;

In step S408, corresponding display positions of the plurality of to-be-displayed associated business objects in the video image are determined according to the corresponding display areas of the plurality of to-be-displayed associated business objects. As an example, central points of the display areas are served as central points of the display positions of the business objects for displaying the business objects; as another example, a certain coordinate position in the display area is determined as a central point of the display position, which will not be limited by the embodiment of the present disclosure; and

In step S410, the plurality of to-be-displayed associated business objects are respectively drawn at the corresponding display positions by using computer graphics.

According to a method for processing a video image provided by the embodiment, the determination of the display positions of the associated business objects in the video image may be effectively implemented, and thus, the plurality of the associated business objects are respectively drawn at the determined display positions by using computer graphics, thereby implementing the putting and displaying of the associated business objects. The plurality of associated business objects are displayed jointly, and are combined effectively with the video broadcasting, thereby enhancing efficiency and effect of putting and displaying the business objects without extra data transmission, and saving the network resources and the system resources of the client.

FIG. 5 is a flowchart of still another embodiment according to the method for displaying a business object in a video image of the present disclosure. The method for displaying a business object in a video image according to the embodiment may be performed by any device possessing functions of data acquisition, processing and transmission, which includes, but not limited to, an electronic device such as a mobile terminal, a personal computer (PC) or the like. The embodiment is described by taking a business object that includes a plurality of associated business objects as an example, which is also adapted to a single business object. As shown in FIG. 5, the method for displaying a business object in a video image according to the embodiment includes the following steps.

In step S502, at least one target object is detected from a video image, and a feature point of the at least one target object is determined.

In an alternative example, step S502 may be performed by a processor invoking a corresponding instruction stored in a memory, and may also be performed by a first determining module 702 run by the processor.

In step S504, corresponding display positions of a plurality of to-be-displayed associated business objects in the video image are determined by using a convolutional network model according to the feature point of the at least one target object, where the convolutional network model is pre-trained and used to determine a display position of a business object in a video image.

In an alternative example, step S504 may be performed by the processor invoking a corresponding instruction stored in the memory, and may also be performed by a second determining module 704 run by the processor.

In step S506, the plurality of associated business objects are drawn and displayed respectively at the determined corresponding display positions by using computer graphics.

In an alternative example, step S506 may be performed by the processor invoking a corresponding instruction stored in the memory, and may also be performed by a drawing module 706 run by the processor.

According to a method for processing a video image provided by the embodiment, the determination of the display positions of the associated business objects in the video image may be effectively implemented based on the pre-trained convolutional network model, and thus, the plurality of associated business objects are respectively drawn at the determined display positions by using computer graphics, thereby implementing the putting and displaying of the associated business objects. The plurality of associated business objects are displayed jointly, and are combined effectively with the video broadcasting, thereby enhancing efficiency and effect of putting and displaying the business objects without extra data transmission, and saving the network resources and the system resources of the client.

FIG. 6 is a flowchart of still another embodiment according to the method for displaying a business object in a video image of the present disclosure. In this embodiment, a plurality of associated business objects are multiple special effects containing semantic information and displaying a given business object theme, or multiple special effects containing semantic information and provided by a given business object provider, or multiple display portions of a given special effect containing semantic information. A video image processing solution provided by this embodiment is described by taking the special effect that is a two-dimensional sticker special effect containing advertisement information as an example, which is also adapted to a single business object. As shown in FIG. 6, the method for displaying a business object in a video image according to this embodiment includes the following steps. In step S602, at least one target object is detected from a video image and a feature point of the at least one target object is determined.

In an alternative example, step S602 may be performed by a processor invoking a corresponding instruction stored in a memory, and may also be performed by a first determining module 702 run by the processor.

In step S604, corresponding display positions of a plurality of to-be-displayed associated business objects in the video image are determined according to the feature point of the at least one target object and types of the plurality of to-be-displayed associated business objects.

Unlike the previous embodiment, when the display positions of the plurality of to-be-displayed associated business objects in the video image are determined, the display positions of the plurality of to-be-displayed associated business objects in the video image are determined not only according to the feature point of the at least one target object, but also according to the types of the to-be-displayed associated business objects. Accordingly, the feature point of the target object may be served as reference to select appropriate display positions for the associated business objects, according to the types of the associated business objects.

In addition, in a situation where the corresponding display positions of the plurality of to-be-displayed associated business objects in the video image are acquired according to the feature point of the at least one target object and the types of the to-be-displayed associated business objects, at least one display position may be selected from the plurality of display positions. For instance, for the text type of the business object, it may be displayed at a background area and may also be displayed at an area of a person, such as a forehead area or a body area.

In step S606, the plurality of associated business objects are drawn, respectively, at the determined corresponding display positions by using computer graphics to display the plurality of associated business objects.

It should be noted that, the associated business objects in the above example may be stickers in a text form or a picture form, or in a form of a combination of them.

According to the video image processing method provided by this embodiment, in comprehensive consideration of the feature point of the target object and the types of the associated business objects, the determination for the display positions of the associated business objects in the video image is implemented, and thus, the plurality of associated business objects are respectively drawn at the corresponding display positions by using computer graphics, thereby implementing the putting and displaying of the associated business objects. The plurality of associated business objects are displayed in a combination thereof, and combine effectively with the video broadcasting to be displayed, which is conductive to enhancing the efficiency and effect of putting and displaying the business objects, does not need any extra data transmission, and then is conductive to saving network resources and system resources of a client.

Any method for displaying a business object in a video image provided by the embodiments of the disclosure may be performed by any appropriate device possessing a data processing function, which includes, but not limited to, a terminal device, a serve and so on. Alternatively, any method for displaying a business object in a video image provided by the embodiments of the disclosure may be performed by the processor. For example, the processor performs any method for displaying a business object in a video image mentioned in the embodiments of the disclosure by invoking corresponding instructions stored in the memory. This will not be repeatedly hereinafter.

It can be understood by those skilled in the art that, the above-described method according to the embodiment of the present disclosure may be implemented in hardware or firmware, or may be implemented as a software or computer code that may be stored in a recording medium such as CD ROM, RAM, floppy disk, hard disk or magneto-optical disk, or as a web downloaded computer code that is originally stored in a remote recording medium or a non-temporary machine-readable medium and will be stored in a local recording medium, so that the method described herein may be processed by such a software that is stored in a recording medium using a general purpose computer, dedicated processor or a programmable or dedicated software (such as ASIC or FPGA). It will be understood that a computer, processor, microprocessor controller or programmable hardware includes a storage component (such as RAM, ROM, flash memory) that may store or receive a software or computer code. When the software or computer code is accessed and executed by the computer, processor or hardware, the processing method as described is implemented. In addition, when the general purpose computer accesses a code for implementing the processing shown here, the execution of the code converts the general purpose computer to a dedicated computer for performing the processing shown here.

FIG. 7 is a structural block diagram of an embodiment according to an apparatus for displaying a business object in a video image of the present disclosure. The apparatus according to various embodiments of the present disclosure may be used to implement the embodiments according to the method of the present disclosure. As shown in FIG. 7, the apparatus for displaying a business object in a video image according to this embodiment includes:

a first determining module 702, configured to detect at least one target object from a video image, and determine a feature point of the at least one target object;

a second determining module 704, configured to determine a display position of a to-be-displayed business object in the video image according to the feature point of the at least one target object; and

a drawing module 706, configured to draw the business object at the display position by using computer graphics.

According to the apparatus for displaying a business object in a video image provided by this embodiment, the target object is detected from the video image and the feature point of the target object is determined, different target objects possess different feature points, and thus, the determined feature point of the target object is served as a basis for determining the display position of the to-be-displayed business object to determine the display position of the to-be-displayed business object, and the business object is drawn at the determined display position so as to display the business object by using computer graphics. When the business object is a to-be-displayed advertisement, on the one hand, the business object that combines with the video broadcasting is drawn at the determined display position by using computer graphics, without transmitting extra advertisement video data irrelevant to a video through a network, which is conductive to saving network resources and system resources of a client; on the other hand, the business object combines closely with the target object in the video image, so that the business object may be displayed in a mode not disturbing an audience, a normal video viewing experience of the audience would not be affected and an antipathy of the audience is difficult to be aroused, which is conductive to improving the putting efficiency and effect of the business object and achieving the expected display efficiency and effect.

In an alternative example of various embodiments according to the apparatus for displaying a business object in a video image of the present disclosure, the second determining module 704 may be implemented by a convolutional network model being pre-trained and used to determine display positions of business objects in video images. That is, the second determining module 704 is configured to determine the display position of the to-be-displayed business object in the video image, according to the feature point of the at least one target object by using the convolutional network model being pre-trained and used to determine display positions of business objects in video images.

FIG. 8 is a structural block diagram of another embodiment according to the apparatus for displaying a business object in a video image of the present disclosure. As shown in FIG. 8, as compared with the embodiment illustrated in FIG. 7, the apparatus in this embodiment further includes a training module 708, which is configured to pre-train the above convolutional network model. In an alternative example, the training module 708 includes:

a first acquiring module 7082, configured to acquire a feature vector of a business object sample image to be trained through the convolutional network model, wherein the feature vector contains information of the target object and position information and/or confidence information of the business object in the business object sample image to be trained;

a second acquiring module 7084, configured to perform convolution processing on the feature vector through the convolutional network model, to acquire a convolution result of the feature vector;

a determining module 7086, configured to respectively determine whether corresponding information of the target object and corresponding position information and/or confidence information of the business object in the business object sample image to be trained meet a convergence condition; and

a performing module 7088, configured to complete training the convolutional network model if the determining result of the determining module 7086 is that the convergence condition is met; and adjust a parameter of the convolutional network model according to the convolution result of the feature vector if the determining result of the determining module 7086 is that the convergence condition is not met, so as to allow the training module 708 to perform an iterative training for the convolutional network model according to the adjusted parameter of the convolutional network model, until the convolution result of the feature vector after the iterative training meets the convergence condition.

Alternatively, the determining module 7086 may include: a first determining module, configured to acquire the corresponding position information of the business object in the convolution result of the feature vector; calculate a first distance between a position indicated by the corresponding position information of the business object and a preset standard position using a first loss function; and determine whether the corresponding position information of the business object meets the convergence condition according to the first distance; and/or a second determining module, configured to acquire the corresponding confidence information of the business object in the convolution result of the feature vector; calculate a second distance between a confidence indicated by the corresponding confidence information of the business object and a preset standard confidence using a second loss function; and determine whether the corresponding confidence information of the business object meets the convergence condition according to the second distance.

Alternatively, the first loss function may be a function calculating a Euclidean distance between the position indicated by the corresponding position information of the business object and the preset standard position; and/or the second loss function may be a function calculating a Euclidean distance between the confidence indicated by the corresponding confidence information of the business object and the preset standard confidence.

Alternatively, the preset standard position may be an average position that is acquired after the position of the business object in the business object sample image to be trained is averaged, and/or, the preset standard confidence may be an average confidence that is acquired after the confidence of the business object in the business object sample image to be trained is averaged.

Alternatively, the training module 708 may further include: a preprocessing module 7080, configured to acquire a plurality of business object sample images before the first acquiring module 7082 acquires the feature vector of the business object sample image to be trained, wherein each of the business object sample images contains annotation information of the business object; determine the position of the business object according to the annotation information and determine whether a distance between the determined position of the business object and a preset position is less than or equal to a set threshold value; and determine the business object sample image corresponding to the business object having the distance between the determined position and the preset position being less than or equal to the set threshold value, as the business object sample image to be trained.

Alternatively, when determining the position of the business object according to the annotation information and determining whether the distance between the determined position of the business object and the preset position is less than or equal to the set threshold value, the preprocessing module 7080 determines a central position of the business object according to the annotation information; and determines whether a variance between the central position and the preset position is less than or equal to a set threshold value.

Alternatively, the second determining module 704 may include: a type determining module 7042, configured to determine a type of the at least one target object according to information of the feature point of the at least one target object; an area determining module 7044, configured to determine a display area of the to-be-displayed business object according to the type of the at least one target object; and a position determining module 7046, configured to determine the display position of the to-be-displayed business object in the video image according to the display area.

Alternatively, the area determining module 7044 may include: a first area determining module, configured to determine that the display area of the to-be-displayed business object includes one or more of a hair area, a forehead area, a cheek area, a chin area and a body area except a head of a person in the video image, when the type of the at least one target object is a human face type; and/or a second area determining module, configured to determine that the display area of the to-be-displayed business object includes a background area in the video image, when the type of the at least one target object is a background type; and/or a third area determining module, configured to determine that the display area of the to-be-displayed business object includes an area centered by an area where a hand is located, and in a set range in the video image, when the type of the at least one target object is a hand type; and/or a fourth area determining module, configured to determine that the display area of the to-be-displayed business object includes a preset area in the video image, when the type of the target object is an action type.

Alternatively, a movement corresponding to the action type includes at least one of blinking, mouth opening, nodding, head shaking, kissing, smiling, hand waving, scissors hand, first clenching, palm-up, thumbs-up, a shooting hand, a V hand, an Ok hand.

Alternatively, the second determining module 704 is configured to determine the display position of the to-be-displayed business object in the video image according to the feature point of the at least one target object and the type of the to-be-displayed business object.

Alternatively, the second determining module 704 is configured to acquire a plurality of display positions of the to-be-displayed business object in the video image, according to the feature point of the at least one target object and the type of the to-be-displayed business object; and select at least one display position as the display position of the to-be-displayed business object in the video image from the plurality of display positions.

Alternatively, for example, the type of the business object may include, but not limited to, one or more of: a forehead sticker type, a cheek sticker type, a chin sticker type, a virtual hat type, a virtual clothing type, a virtual makeup type, a virtual headwear type, a virtual hair accessory type, a virtual jewelry type, a background type, a virtual pet type, and a virtual container type.

Alternatively, the second determining module 704 is configured to acquire a target display position corresponding to the feature point of the at least one target object from a pre-stored corresponding relationship between the feature point of the target object and the display position; and determine the acquired target display position as the display position of the to-be-displayed business object in the video image.

Alternatively, the business object may be a special effect containing semantic information, and the video image may be a live streaming video image.

Alternatively, the special effect containing semantic information may include at least one of the following forms of special effect containing advertisement information: a two-dimensional sticker special effect or a three-dimensional special effect and a particle special effect.

In an alternative example of various embodiments according to the apparatus of the present disclosure, the business object may include a plurality of associated business objects. Accordingly, the second determining module 704 is configured to determine corresponding display positions of a plurality of to-be-displayed associated business objects in the video image according to the feature point of the at least one target object; and the drawing module 706 is configured to respectively draw the plurality of associated business objects at the corresponding display positions by using computer graphics.

In alternative example, the plurality of associated business objects may include, but not limited to, one or more of: multiple special effects containing semantic information and displaying a given business object theme, multiple display portions of a given special effect containing semantic information, and multiple special effects containing semantic information and provided by a given business object provider. For example, the special effect may include any one of the two-dimensional sticker special effect, three-dimensional special effect and particle special effect containing the advertisement information. In addition, other forms of business objects are also adapted to the video image processing solution provided by the embodiments of the present disclosure.

For example, the corresponding display positions may include one or more of: the hair area, the forehead area, the cheek area, the chin area and the body area except the head of the person in the video image, the background area in the video image, the area centered by the area where the hand is located and in the set range in the video image and the preset area in the video image.

The apparatus for displaying a business object in a video image according to various embodiments of the present disclosure may be configured to implement the various embodiments according to the method for displaying a business object in a video image, and possess corresponding beneficial effects of the embodiments according to the method, which will not be repeatedly described here.

In addition, the apparatus for displaying a business object in a video image according to various embodiments of the present disclosure may be provided in an appropriate electronic device, such as a mobile terminal, a PC and a server.

FIG. 9 is a schematic structural diagram of an embodiment according to an electronic device of the present disclosure. The embodiments of the present disclosure do not limit an implementation of the electronic device. As shown in FIG. 9, the electronic device may include: a processor 902, a communication interface 904, a memory 906 and a communication bus 908.

The processor 902, the communication interface 904 and the memory 906 communicate with each other via the communication bus 908.

The communication interface 904 is used to communicate with a network element of other devices, such as other clients or servers.

The processor 902 may be a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or configured to be one or more integrated circuits that implement the embodiments of the present disclosure, or a Graphics Processing Unit (GPU). One or more processors included in a terminal device may be a given type of processor, for example, one or more CPUs or one or more GPUs, and may also be different types of processors, for example, one or more CPUs and one or more GPUs.

The memory 906 is used to store an executable instruction, and this executable instruction causes the processor 902 to perform operations corresponding to the method for displaying a business object in a video image according to any embodiment of the present disclosure. The memory 906 may include a high speed random access memory (RAM), and may further include a non-volatile memory, for example, at least one disk memory. As will be appreciated by one skilled in the art, the present disclosure may be embodied as a computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product embodied in any tangible medium of expression having a computer-usable program embodied in the medium.

FIG. 10 is a schematic structural diagram of another embodiment according to the electronic device of the present disclosure. Referring to FIG. 10, which illustrates the schematic structural diagram of the electronic device that is adapted to implement a terminal device or a serve according to embodiments of the present disclosure. As shown in FIG. 10, this electronic device includes one or more processors, a communication part and so on. The one or more processors, such as one or more central processing units (CPU) 1001 and/or one or more graphics processing units (GPU) 1013, may perform various appropriate actions and processing, according to executable instructions stored in a read-only memory (ROM) 1002, or executable instructions loaded from a storage portion 1008 to a random access memory (RAM) 1003. The communication part 1012 may include, but not limited to, a network card, the network card may include, but not limited to, an IB (Infiniband) network card, the processor may communicate with the read-only memory 1002 and/or the random access memory 1003 to execute the executable instruction, connect with the communication part 1012 via a bus 1004, and communicate with other target devices through the communication part 1012, thereby completing operations corresponding to the method for displaying a business object in a video image provided by any embodiment of the present disclosure. For instance, the operations include: detecting at least one target object from a video image, and determining a feature point of the at least one target object; determining a display position of a to-be-displayed business object in the video image according to the feature point of the at least one target object; and drawing the business object at the display position by using computer graphics.

In addition, RAM 1003 may further store various programs and data required by operations of an apparatus. CPU 1001, ROM 1002 and RAM 1003 connect with each other via the bus 1004. In a situation where RAM 1003 is provided, ROM 1002 is an alternative module. RAM 1003 stores executable instructions, or writes the executable instructions into ROM 1002 at run time, and the executable instructions cause the processor 1001 to perform the operations corresponding to the method for displaying a business object in a video image. An Input/Output (I/O) interface 1005 is also connected to the bus 1004. The communication part 1012 may be configured to be integrated, and may also be configured to include a plurality of sub-modules (e.g., a plurality of IB network cards) and be on the bus link.

The following components are connected to the I/O interface 1005: an input portion 1006 including a keyboard, a mouse etc.; an output portion 1007 including a cathode ray tube (CRT), a liquid crystal display device (LCD), a speaker etc.; the storage portion 1008 including a hard disk and the like; and a communication portion 1009 including a network interface card, such as a LAN card and a modem. The communication portion 1009 performs communication processing via a network, such as the Internet. A driver 1010 is also connected to the I/O interface 1005 as required. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, and a semiconductor memory, may be installed on the driver 1010, to facilitate the retrieval of a computer program from the removable medium. 1011, and the installation thereof on the storage portion 1008 as needed.

It should be noted that, the structure as illustrated in FIG. 10 is merely an alternative implementation, and in the practical process, the number and types of the components in FIG. 10 may be selected, reduced, added or replaced according to actual requirements; and in the configurations of different functional components, the implementation, such as a separated configuration or an integrated configuration may be adopted, for example, the GPU and CPU may be separately configured or the GPU may be integrated onto the CPU, and the communication part may be separately configured, and may also be integrated onto the CPU or the GPU. These alternative implementations fall within the protection extent disclosed by the present disclosure.

In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flow charts may be implemented in a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program that is tangibly embedded in a machine-readable medium. The computer program includes a program code for performing the method as illustrated in the flow charts. The program code may include instructions corresponding to steps of the method provided by the embodiments of the present disclosure. For example, the steps include: detecting at least one target object from a video image, and determining a feature point of the at least one target object; determining a display position of a to-be-displayed business object in the video image according to the feature point of the at least one target object; and drawing the business object at the display position by using computer graphics.

In addition, the embodiments of the present disclosure further provide a computer program, which includes a computer readable code, and the program code includes a computer operating instruction. The processor in the device executes the instruction for implementing each step in the method for displaying a business object in a video image according to any embodiment of the present disclosure, when the computer readable codes are run on the device.

In addition, the embodiments of the present disclosure further provide a computer readable storage medium for storing computer readable instructions. The operation of each step in the method for displaying a business object in a video image according to any embodiment of the present disclosure is implemented when the instructions are executed.

In the embodiments of the present disclosure, when the computer program and the computer readable instructions are executed, the implementation of each step may refer to the corresponding description in the corresponding step and module in the preceding embodiments, which will not be repeatedly here. It can be clearly understood by those skilled in the art that, for the convenience and concision of the description, the specific working processes of the device and modules described above may refer to the description of the corresponding processes in the preceding embodiments of the method, which will not be repeatedly here.

Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on differences from other embodiments, with the same or similar parts of each embodiment being referred to each other. For the embodiments of an apparatus, a device, a program, a storage medium etc., it is relatively simple to describe because of their basic correspondence to the method embodiments; and for relevant parts, see partial description of the method embodiments.

It should be noted that, as required by the implementation, each component/step described in the embodiments of the present disclosure may be split into more components/steps, two or more components/steps or some of operations of the component/step may be combined into a new component/step to achieve the purposes of the embodiments of the present disclosure. Those skilled in the art may be conscious of that the method and apparatus according to the present disclosure can be implemented in many ways. For instance, the method and apparatus according to the present disclosure may be implemented by software, hardware, firmware or any combination of the software, the hardware and the firmware. Whether these functions are performed by the hardware or by the software depends on specific applications and design constraints of the technical solution. For each specific application, the professionals may use different methods to implement the described functions, however, this implementation shall not go beyond the scope of the embodiments of the present disclosure. The order of the steps in the method is merely for the description, and the steps in the method of the present disclosure are not limited to the order specifically described above, unless otherwise noted in other ways. In addition, in some embodiments, the present disclosure may also be implemented in programs recorded in a recording medium, and these programs include machine-readable instructions for implementing the method according to the present disclosure. Accordingly, the present disclosure also covers the recording medium storing the programs which are used to perform the method according to the present disclosure.

The above implementations are only used to illustrate the embodiments of the present application rather than limiting the embodiments of the present application, those of ordinary skills in related technical fields may also make various changes and variations without departing from the scope of the embodiments of the present application, so that all equivalent technical schemes also fall within the scope of the embodiments of the present application, and the scope of patent protection of the embodiments of the present application shall be limited by the claims. 

What is claimed is:
 1. A method for displaying a business object in a video image, comprising: detecting at least one object from the video image, determining an object performing an action as a target object from the at least one object, and determining feature points of the target object by processing at least part of the video image, the features points of the target object being separated points on a contour of the target object; determining a display position of a to-be-displayed business object in the video image according to the feature points on the contour of the target object by using a convolutional network model pre-trained by acquiring a feature vector of a business object sample image by the convolutional network model, the feature vector including information of the target object and position information and/or confidence information of a business object in the business object sample image; and drawing the to-be-displayed business object at the display position by using computer graphics to display the to-be-displayed business object together with the target object, wherein the target object is a human body part performing the action, wherein the determining the display position of the to-be-displayed business object in the video image according to the feature points on the contour of the target object comprises: determining the human body part as the display position based on feature points on the contour of the human body part.
 2. The method according to claim 1, wherein pre-training of the convolutional network model further comprises: performing convolution processing on the feature vector by using the convolutional network model to acquire a convolution result of the feature vector; and adjusting a parameter of the convolutional network model according to the convolution result of the feature vector.
 3. The method according to claim 2, wherein the adjusting the parameter of the convolutional network model according to the convolution result of the feature vector comprises: acquiring the corresponding position information of the business object in the convolution result of the feature vector; calculating a first distance between a position indicated by the corresponding position information of the business object and a preset standard position using a first loss function; and adjusting the parameter of the convolutional network model according to the first distance; and/or acquiring the corresponding confidence information of the business object in the convolution result of the feature vector; calculating a second distance between a confidence indicated by the corresponding confidence information of the business object and a preset standard confidence using a second loss function; and adjusting the parameter of the convolutional network model according to the second distance.
 4. The method according to claim 1, wherein the determining a display position of a to-be-displayed business object in the video image according to the feature points on the contour of the target object comprises: determining a type of the target object based on the feature points of the target object; determining a display area of the to-be-displayed business object according to the type of the target object; and determining the display position of the to-be-displayed business object in the video image according to the display area.
 5. The method according to claim 1, wherein the to-be-displayed business object comprises a plurality of associated business objects; the determining a display position of a to-be-displayed business object in the video image comprises determining corresponding display positions of a plurality of to-be-displayed associated business objects in the video image; and the drawing the to-be-displayed business object at the display position by using computer graphics comprises drawing the plurality of associated business objects at the corresponding display positions by using computer graphics, respectively.
 6. The method according to claim 5, wherein the plurality of associated business objects comprise any one or more of: multiple special effects containing semantic information that are used for displaying a same business object theme, multiple display portions of a same special effect containing semantic information, and multiple special effects containing semantic information that are provided by a same business object provider.
 7. The method according to claim 1, wherein the determining an object performing an action as a target object from the at least one object comprises: determining a second human body part with a gesture as the target object.
 8. The method according to claim 1, wherein the to-be-displayed business object has a same shape as the human body part.
 9. The method according to claim 1, wherein the to-be-displayed business object is an article for being placed on the human body part.
 10. An apparatus for displaying a business object in a video image, comprising: a processor; and a memory storing instructions, the instructions when executed by the processor, cause the processor to perform operations, the operations comprising: detecting at least one object from the video image, determining an object performing an action as a target object from the at least one object, and determining feature points of the target object by processing at least part of the video image, the features points of the target object being separated points on a contour of the target object; determining a display position of a to-be-displayed business object in the video image according to the feature points on the contour of the target object by using a convolutional network model pre-trained by acquiring a feature vector of a business object sample image by the convolutional network model, the feature vector including information of the target object and position information and/or confidence information of a business object in the business object sample image; and drawing the to-be-displayed business object at the display position by using computer graphics to display the to-be-displayed business object together with the target object, wherein the target object is a human body part performing the action, wherein the determining the display position of the to-be-displayed business object in the video image according to the feature points on the contour of the target object comprises: determining the human body part as the display position based on feature points on the contour of the human body part.
 11. The apparatus according to claim 10, wherein the operations further comprise pre-training the convolutional network model, wherein the pre-training the convolutional network model comprises: performing convolution processing on the feature vector to acquire a convolution result of the feature vector; and adjusting a parameter of the convolutional network model according to the convolution result of the feature vector.
 12. The apparatus according to claim 11, wherein the adjusting the parameter of the convolutional network model according to the convolution result of the feature vector comprises: acquiring the corresponding position information of the business object in the convolution result of the feature vector; calculating a first distance between a position indicated by the corresponding position information of the business object and a preset standard position using a first loss function; and adjusting the parameter of the convolutional network model according to the first distance; and/or acquiring the corresponding confidence information of the business object in the convolution result of the feature vector; calculating a second distance between a confidence indicated by the corresponding confidence information of the business object and a preset standard confidence using a second loss function; and adjusting the parameter of the convolutional network model according to the second distance.
 13. The apparatus according to claim 10, wherein the determining a display position of a to-be-displayed business object in the video image according to the feature points on the contour of the target object comprises: determining a type of the target object based on the feature points of the target object; determining a display area of the to-be-displayed business object according to the type of the target object; and determining the display position of the to-be-displayed business object in the video image according to the display area.
 14. The apparatus according to claim 10, wherein the to-be-displayed business object comprises a plurality of associated business objects; the determining a display position of a to-be-displayed business object in the video image according to the feature points on the contour of the target object comprises: determining corresponding display positions of a plurality of to-be-displayed associated business objects in the video image according to the feature points on the contour of the target object; and the drawing the to-be-displayed business object at the display position by using computer graphics comprises: drawing the plurality of associated business objects at the corresponding display positions by using computer graphics, respectively.
 15. A non-transitory computer program product, comprising a computer readable code, wherein when the computer readable code is run on a device, a processor in the device executes an instruction for realizing the method for displaying a business object in a video image according to claim
 1. 